package com.cyy.dyeing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyy.dyeing.dto.GroupDto;
import com.cyy.dyeing.model.Group;
import com.cyy.dyeing.model.Plan;
import com.cyy.dyeing.dto.PlanDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: cyy
 * @Date: 2024/7/27
 */
@Mapper
public interface ProcessMapper extends BaseMapper<Group> {

    List<Plan> findPlanList(PlanDto planDto);

    List<Group> findGroupList(GroupDto groupDto);

    @Update("update t_group set ${num_field} = #{num} where group_id = #{group_id}")
    void updateGroupNumOfGroup(String groupId, String pretreatNum, Integer retreatNum);
}
